package com.shop.service;

import com.shop.common.SetMeta;
import com.shop.entity.Order;
import com.shop.exception.OrderException;

public interface OrderService {
    /**
     * 订单数据列表
     * @param query
     * @param pagenum
     * @param pagesize
     * @param order
     * @return
     */
    SetMeta selectAll(String query, int pagenum, int pagesize, Order order);

    /**
     * 修改订单状态
     * @param order
     * @return
     * @throws OrderException
     */
    SetMeta updateOrder(Order order) throws OrderException;

    /**
     * 查看订单详情
     * @param id
     * @return
     * @throws OrderException
     */
    Order selectOrder(Integer id) throws OrderException;

    /**
     * 修改地址
     * @param id
     * @param consignee_addr
     * @return
     * @throws OrderException
     */
    SetMeta updateOrderAddress(Integer id, String consignee_addr) throws OrderException;
}
